package com.outsource.framework.util.common;

import java.io.Serializable;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

public class Response implements Serializable{

	private static final long serialVersionUID = -2000477051298262086L;
	
	private Map<String, Object> map = null;
	
	public Map<String, Object> getResponse(String responseCode,String responseMessages,Object responseEntry){
		map = new HashMap<String, Object>();
		map.put(Constants.RESPONSE_CODE, responseCode);
		map.put(Constants.RESPONSE_MESSAGES, responseMessages);
		map.put(Constants.RESPONSE_ENTRY, responseEntry);
		return map;
	}
	
	public Map<String, Object> getResponse(String responseCode,String responseMessages,String total,Object responseEntry){
		map = new HashMap<String, Object>();
		map.put(Constants.RESPONSE_CODE, responseCode);
		map.put(Constants.RESPONSE_MESSAGES, responseMessages);
		map.put(Constants.RESPONSE_TOTAL, total);
		map.put(Constants.RESPONSE_ENTRY, responseEntry);
		return map;
	}
	
	public Map<String, Object> getResponse_(String responseCode,String responseMessages,String version,Object responseEntry){
		LinkedHashMap<String, Object> map = new LinkedHashMap<String, Object>();
		map.put(Constants.RESPONSE_CODE, responseCode);
		map.put(Constants.RESPONSE_MESSAGES, responseMessages);
		map.put(Constants.RESPONSE_VERSION, version);
		map.put(Constants.RESPONSE_ENTRY, responseEntry);
		return map;
	}
}
